Einhugur Xml Plugin for Xojo

Node.NodeAttributes Method

Returns iterator for attributes on the node.

NodeAttributes() as EinhugurXml.AttributeIterator

Parameters

Returns

EinhugurXml.AttributeIterator

Remarks

Iterating through all attributes on a given node:


var f as FolderItem = FolderItem.ShowOpenFileDialog(".xml")

if f <> nil then
    var doc as EinhugurXml.Document = new EinhugurXml.Document()
   
    var result as EinhugurXml.ParseResult = doc.LoadFromFile(f)
   
    if result.Success then
      
       var tools as EinhugurXml.Node = doc.Child("Profile").Child("Tools").FirstChild
      
       for each attr as EinhugurXml.Attribute in tools.NodeAttributes
          MessageBox(attr.Name + ": " + attr.Value)
       next
    end if
end if

See Also

Node Class